{"ast":null,"code":"import _defineProperty from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nimport { genComponentStyleHook, mergeToken } from '../../theme/internal';\n// ============================== Styles ==============================\nvar genBaseStyle = function genBaseStyle(token) {\n  var _ref;\n  var componentCls = token.componentCls,\n    lineHeightHeading3 = token.lineHeightHeading3,\n    iconCls = token.iconCls,\n    padding = token.padding,\n    paddingXL = token.paddingXL,\n    paddingXS = token.paddingXS,\n    paddingLG = token.paddingLG,\n    marginXS = token.marginXS,\n    lineHeight = token.lineHeight;\n  return _ref = {}, _defineProperty(_ref, componentCls, {\n    padding: \"\".concat(paddingLG * 2, \"px \").concat(paddingXL, \"px\"),\n    // RTL\n    '&-rtl': {\n      direction: 'rtl'\n    }\n  }), _defineProperty(_ref, \"\".concat(componentCls, \" \").concat(componentCls, \"-image\"), {\n    width: token.imageWidth,\n    height: token.imageHeight,\n    margin: 'auto'\n  }), _defineProperty(_ref, \"\".concat(componentCls, \" \").concat(componentCls, \"-icon\"), _defineProperty({\n    marginBottom: paddingLG,\n    textAlign: 'center'\n  }, \"& > \".concat(iconCls), {\n    fontSize: token.resultIconFontSize\n  })), _defineProperty(_ref, \"\".concat(componentCls, \" \").concat(componentCls, \"-title\"), {\n    color: token.colorTextHeading,\n    fontSize: token.resultTitleFontSize,\n    lineHeight: lineHeightHeading3,\n    marginBlock: marginXS,\n    textAlign: 'center'\n  }), _defineProperty(_ref, \"\".concat(componentCls, \" \").concat(componentCls, \"-subtitle\"), {\n    color: token.colorTextDescription,\n    fontSize: token.resultSubtitleFontSize,\n    lineHeight: lineHeight,\n    textAlign: 'center'\n  }), _defineProperty(_ref, \"\".concat(componentCls, \" \").concat(componentCls, \"-content\"), {\n    marginTop: paddingLG,\n    padding: \"\".concat(paddingLG, \"px \").concat(padding * 2.5, \"px\"),\n    backgroundColor: token.colorFillAlter\n  }), _defineProperty(_ref, \"\".concat(componentCls, \" \").concat(componentCls, \"-extra\"), {\n    margin: token.resultExtraMargin,\n    textAlign: 'center',\n    '& > *': {\n      marginInlineEnd: paddingXS,\n      '&:last-child': {\n        marginInlineEnd: 0\n      }\n    }\n  }), _ref;\n};\nvar genStatusIconStyle = function genStatusIconStyle(token) {\n  var _ref2;\n  var componentCls = token.componentCls,\n    iconCls = token.iconCls;\n  return _ref2 = {}, _defineProperty(_ref2, \"\".concat(componentCls, \"-success \").concat(componentCls, \"-icon > \").concat(iconCls), {\n    color: token.resultSuccessIconColor\n  }), _defineProperty(_ref2, \"\".concat(componentCls, \"-error \").concat(componentCls, \"-icon > \").concat(iconCls), {\n    color: token.resultErrorIconColor\n  }), _defineProperty(_ref2, \"\".concat(componentCls, \"-info \").concat(componentCls, \"-icon > \").concat(iconCls), {\n    color: token.resultInfoIconColor\n  }), _defineProperty(_ref2, \"\".concat(componentCls, \"-warning \").concat(componentCls, \"-icon > \").concat(iconCls), {\n    color: token.resultWarningIconColor\n  }), _ref2;\n};\nvar genResultStyle = function genResultStyle(token) {\n  return [genBaseStyle(token), genStatusIconStyle(token)];\n};\n// ============================== Export ==============================\nvar getStyle = function getStyle(token) {\n  return genResultStyle(token);\n};\nexport default genComponentStyleHook('Result', function (token) {\n  var paddingLG = token.paddingLG,\n    fontSizeHeading3 = token.fontSizeHeading3;\n  var resultSubtitleFontSize = token.fontSize;\n  var resultExtraMargin = \"\".concat(paddingLG, \"px 0 0 0\");\n  var resultInfoIconColor = token.colorInfo;\n  var resultErrorIconColor = token.colorError;\n  var resultSuccessIconColor = token.colorSuccess;\n  var resultWarningIconColor = token.colorWarning;\n  var resultToken = mergeToken(token, {\n    resultTitleFontSize: fontSizeHeading3,\n    resultSubtitleFontSize: resultSubtitleFontSize,\n    resultIconFontSize: fontSizeHeading3 * 3,\n    resultExtraMargin: resultExtraMargin,\n    resultInfoIconColor: resultInfoIconColor,\n    resultErrorIconColor: resultErrorIconColor,\n    resultSuccessIconColor: resultSuccessIconColor,\n    resultWarningIconColor: resultWarningIconColor\n  });\n  return [getStyle(resultToken)];\n}, {\n  imageWidth: 250,\n  imageHeight: 295\n});","map":{"version":3,"names":["genComponentStyleHook","mergeToken","genBaseStyle","token","componentCls","lineHeightHeading3","iconCls","padding","paddingXL","paddingXS","paddingLG","marginXS","lineHeight","direction","width","imageWidth","height","imageHeight","margin","marginBottom","textAlign","fontSize","resultIconFontSize","color","colorTextHeading","resultTitleFontSize","marginBlock","colorTextDescription","resultSubtitleFontSize","marginTop","backgroundColor","colorFillAlter","resultExtraMargin","marginInlineEnd","genStatusIconStyle","resultSuccessIconColor","resultErrorIconColor","resultInfoIconColor","resultWarningIconColor","genResultStyle","getStyle","fontSizeHeading3","colorInfo","colorError","colorSuccess","colorWarning","resultToken"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/antd/es/result/style/index.js"],"sourcesContent":["import { genComponentStyleHook, mergeToken } from '../../theme/internal';\n// ============================== Styles ==============================\nconst genBaseStyle = token => {\n  const {\n    componentCls,\n    lineHeightHeading3,\n    iconCls,\n    padding,\n    paddingXL,\n    paddingXS,\n    paddingLG,\n    marginXS,\n    lineHeight\n  } = token;\n  return {\n    // Result\n    [componentCls]: {\n      padding: `${paddingLG * 2}px ${paddingXL}px`,\n      // RTL\n      '&-rtl': {\n        direction: 'rtl'\n      }\n    },\n    // Exception Status image\n    [`${componentCls} ${componentCls}-image`]: {\n      width: token.imageWidth,\n      height: token.imageHeight,\n      margin: 'auto'\n    },\n    [`${componentCls} ${componentCls}-icon`]: {\n      marginBottom: paddingLG,\n      textAlign: 'center',\n      [`& > ${iconCls}`]: {\n        fontSize: token.resultIconFontSize\n      }\n    },\n    [`${componentCls} ${componentCls}-title`]: {\n      color: token.colorTextHeading,\n      fontSize: token.resultTitleFontSize,\n      lineHeight: lineHeightHeading3,\n      marginBlock: marginXS,\n      textAlign: 'center'\n    },\n    [`${componentCls} ${componentCls}-subtitle`]: {\n      color: token.colorTextDescription,\n      fontSize: token.resultSubtitleFontSize,\n      lineHeight,\n      textAlign: 'center'\n    },\n    [`${componentCls} ${componentCls}-content`]: {\n      marginTop: paddingLG,\n      padding: `${paddingLG}px ${padding * 2.5}px`,\n      backgroundColor: token.colorFillAlter\n    },\n    [`${componentCls} ${componentCls}-extra`]: {\n      margin: token.resultExtraMargin,\n      textAlign: 'center',\n      '& > *': {\n        marginInlineEnd: paddingXS,\n        '&:last-child': {\n          marginInlineEnd: 0\n        }\n      }\n    }\n  };\n};\nconst genStatusIconStyle = token => {\n  const {\n    componentCls,\n    iconCls\n  } = token;\n  return {\n    [`${componentCls}-success ${componentCls}-icon > ${iconCls}`]: {\n      color: token.resultSuccessIconColor\n    },\n    [`${componentCls}-error ${componentCls}-icon > ${iconCls}`]: {\n      color: token.resultErrorIconColor\n    },\n    [`${componentCls}-info ${componentCls}-icon > ${iconCls}`]: {\n      color: token.resultInfoIconColor\n    },\n    [`${componentCls}-warning ${componentCls}-icon > ${iconCls}`]: {\n      color: token.resultWarningIconColor\n    }\n  };\n};\nconst genResultStyle = token => [genBaseStyle(token), genStatusIconStyle(token)];\n// ============================== Export ==============================\nconst getStyle = token => genResultStyle(token);\nexport default genComponentStyleHook('Result', token => {\n  const {\n    paddingLG,\n    fontSizeHeading3\n  } = token;\n  const resultSubtitleFontSize = token.fontSize;\n  const resultExtraMargin = `${paddingLG}px 0 0 0`;\n  const resultInfoIconColor = token.colorInfo;\n  const resultErrorIconColor = token.colorError;\n  const resultSuccessIconColor = token.colorSuccess;\n  const resultWarningIconColor = token.colorWarning;\n  const resultToken = mergeToken(token, {\n    resultTitleFontSize: fontSizeHeading3,\n    resultSubtitleFontSize,\n    resultIconFontSize: fontSizeHeading3 * 3,\n    resultExtraMargin,\n    resultInfoIconColor,\n    resultErrorIconColor,\n    resultSuccessIconColor,\n    resultWarningIconColor\n  });\n  return [getStyle(resultToken)];\n}, {\n  imageWidth: 250,\n  imageHeight: 295\n});"],"mappings":";AAAA,SAASA,qBAAqB,EAAEC,UAAU,QAAQ,sBAAsB;AACxE;AACA,IA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